package com.lean.plugin.network

import com.google.gson.annotations.SerializedName

data class ApiResponse<out T>(
    @SerializedName("code") val code: Int,
    @SerializedName("message") val msg: String,
    @SerializedName("data") val data: T
) {

    fun isSuccessful() = code == 0 || code == 200
}